﻿namespace Test30.Util
{
    public static class StringExtensions
    {
        public static string RemoveSuffix(this string val, int length)
        {
            if (val.Length > length)
                return val.Substring(0, val.Length - length);
            return string.Empty;
        }
        public static string RemovePrefix(this string val, string str)
        {
            if (val.Length > str.Length)
                return val.Substring(str.Length, val.Length - str.Length);
            return string.Empty;
        }
    }
}
